import request from '@/utils/request'
import {encryptedData} from '@/utils/encrypt'
import {loginRSA, tokenName} from '@/config'

export async function list(data) {
  return request({
    url: '/management/get',
    method: 'get',
    data: data,
  })
}
/*

export function getUserInfo(accessToken) {
  return request({
    url: '/userInfo',
    method: 'post',
    data: {
      [tokenName]: accessToken,
    },
  })
}
*/

export function logout() {
  return request({
    url: '/logout',
    method: 'post',
  })
}

export function register() {
  return request({
    url: '/register',
    method: 'post',
  })
}
